class Student:
    def __init__(self, name, age, gender, score):
        self.name = name
        self.age = age
        self.gender = gender
        self.score = score

    def info(self):
        print(f"name={self.name},age={self.age},gender={self.gender},score={self.score}")

# 张三,16,男,89#李斯,13,女,90
stu_str = input("请输入一组学生信息")
stu_list = []
for e in stu_str.split("#"):
    st = e.split(",")
    stu_list.append(Student(st[0], st[1], st[2], st[3]))
for stu in stu_list:
    stu.info()
